import {makeAutoObservable} from "mobx";
import {http} from "@/utils";

class ChannelStore{
    channelList=[]
    constructor() {
        makeAutoObservable(this)
    }
    //获取文章列表信息
    getChannelList=async () => {
        const res = await http.get('/channels')
        this.channelList=res.data.channels

    }

}

export default ChannelStore